package com.endoc.designpattern.factory.abstractFactory;

import com.endoc.designpattern.entity.Bag;
import com.endoc.designpattern.entity.Fruit;
import com.endoc.designpattern.entity.fruit.Apple;
import com.endoc.designpattern.entity.fruit.Banana;
import com.endoc.designpattern.entity.fruitpack.BananaBag;

public class BananaFactory extends AbstractFactory {
    @Override
    public Fruit getFruit() {
        return new Banana(20);
    }

    @Override
    public Bag getBag() {
        return new BananaBag();
    }
}
